﻿using System;
using WiMo.Games.Drawables;
using System.Drawing;

namespace WiMo.Games.DirectDrawDisplay.Drawables
{
    public class SpriteText : SpriteTextBase
    {
        public override void Render(IDisplay display)
        {
            display.Render(this);
        }


        string _text = string.Empty;
        public override string Text
        {
            get
            {
                return _text;
            }
            set{
                if (_text != value)
                {
                    _text = value;
                    DrawInformation = null;
                }
            }
        }
         

        public override void Dispose()
        {
            var font = Font.FontInformation as IDisposable;
            if (font != null)
                font.Dispose();

            Font.FontInformation = null;
        }

        public override bool CheckForCollision(ISprite sprite)
        {
            return false;
        }

    }
}
